local prohTrickCardSkill = fk.CreateSkill {
  name = "prohTrickCardSkill",
  tags = { Skill.Compulsory, },
}


prohTrickCardSkill:addEffect(fk.TurnEnd, {
  anim_type = "negative",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(prohTrickCardSkill.name) and target == player and player:getMark("@@up_nullifi") > 0
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:setPlayerMark(player,"@@up_nullifi",0)
    room:handleAddLoseSkills(player, "-prohTrickCardSkill", nil, false)
  end,
})

prohTrickCardSkill:addEffect("prohibit", {
  name = "#trick_prohibit",
  prohibit_use = function(self, player, card)
    local mark = player:getMark("@@up_nullifi")
    return mark ~= 0 and card.type == Card.TypeTrick
  end,
})


return prohTrickCardSkill